package web.exercise.service;

import java.util.ArrayList;

import web.exercise.entity.Contacts;
import web.exercise.exception.NameRepeatException;

public interface ContactsService {
	//处理Contacts的业务逻辑
	public ArrayList<Contacts> getContactsList();
	
	public boolean addContacts(Contacts contacts) throws NameRepeatException;

	public Contacts getContactsById(String id);
	
	public void modify(Contacts con);
	
	public void delete(String id);
}
